package com.xiaoxi.open.design.structural.bridgepattern.platform;

import com.xiaoxi.open.design.structural.bridgepattern.video.Video;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName WindowPlatform
 * @Description
 * @Author xiaoxi
 * @Date 2024/10/20 15:45
 * @Version 1.0
 */
@Slf4j
public class WindowsPlatform extends Platform {

    public WindowsPlatform(Video video) {
        super(video);
    }

    @Override
    public void openVideo(Long videoId) {


        log.info("在windows上，开始播放 video");

        video.show(videoId);


    }

    @Override
    public void downloadVideo(Long videoId) {

        log.info("开始针对视频源，将其转化为windows可播放源,进行下载");

        video.download(videoId);

    }
}
